package com.zx.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yaml.snakeyaml.events.Event;

/**
 * @author ZX
 * @date 2021/4/14
 */
@RequestMapping(value = "/hello")
@RestController
public class HelloController
{


    @GetMapping(value = "/{id}")
    public String test(@PathVariable(value = "id")String id){

        return  id;
    }
}
